.class public Lcom/philzhu/www/ddz/MainMenuScreen;
.super Lcom/philzhu/www/framework/Screen;
.source "MainMenuScreen.java"


# static fields
.field private static final HELP_BUTTON_INDEX:I = 0x2

.field private static final HIGHSCORE_BUTTON_INDEX:I = 0x4

.field private static final MOREGAMES_BUTTON_INDEX:I = 0x5

.field private static final OPTIONS_BUTTON_INDEX:I = 0x3

.field private static final START_BUTTON_INDEX:I = 0x1


# instance fields
.field private currentPressedButton:I


# direct methods
.method public constructor <init>(Lcom/philzhu/www/framework/Game;)V
    .locals 1
    .parameter "game"

    .prologue
    .line 26
    invoke-direct {p0, p1}, Lcom/philzhu/www/framework/Screen;-><init>(Lcom/philzhu/www/framework/Game;)V

    .line 23
    const/4 v0, 0x0

    iput v0, p0, Lcom/philzhu/www/ddz/MainMenuScreen;->currentPressedButton:I

    .line 27
    const/4 v0, 0x1

    iput v0, p0, Lcom/philzhu/www/ddz/MainMenuScreen;->screenType:I

    .line 28
    return-void
.end method

.method private inBounds(Lcom/philzhu/www/framework/Input$TouchEvent;IIII)Z
    .locals 3
    .parameter "event"
    .parameter "x"
    .parameter "y"
    .parameter "width"
    .parameter "height"

    .prologue
    const/4 v2, 0x1

    .line 99
    iget v0, p1, Lcom/philzhu/www/framework/Input$TouchEvent;->x:I

    if-le v0, p2, :cond_0

    iget v0, p1, Lcom/philzhu/www/framework/Input$TouchEvent;->x:I

    add-int v1, p2, p4

    sub-int/2addr v1, v2

    if-ge v0, v1, :cond_0

    .line 100
    iget v0, p1, Lcom/philzhu/www/framework/Input$TouchEvent;->y:I

    if-le v0, p3, :cond_0

    iget v0, p1, Lcom/philzhu/www/framework/Input$TouchEvent;->y:I

    add-int v1, p3, p5

    sub-int/2addr v1, v2

    if-ge v0, v1, :cond_0

    move v0, v2

    .line 103
    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method


# virtual methods
.method public dispose()V
    .locals 0

    .prologue
    .line 180
    return-void
.end method

.method public pause()V
    .locals 1

    .prologue
    .line 169
    iget-object v0, p0, Lcom/philzhu/www/ddz/MainMenuScreen;->game:Lcom/philzhu/www/framework/Game;

    invoke-interface {v0}, Lcom/philzhu/www/framework/Game;->getFileIO()Lcom/philzhu/www/framework/FileIO;

    move-result-object v0

    invoke-static {v0}, Lcom/philzhu/www/ddz/Settings;->save(Lcom/philzhu/www/framework/FileIO;)V

    .line 170
    return-void
.end method

.method public present(F)V
    .locals 13
    .parameter "deltaTime"

    .prologue
    const/16 v12, 0x3c

    const/16 v11, 0xf

    const/4 v8, 0x0

    const/16 v10, 0x230

    const/16 v9, 0x1ea

    .line 108
    iget-object v7, p0, Lcom/philzhu/www/ddz/MainMenuScreen;->game:Lcom/philzhu/www/framework/Game;

    invoke-interface {v7}, Lcom/philzhu/www/framework/Game;->getGraphics()Lcom/philzhu/www/framework/Graphics;

    move-result-object v0

    .line 110
    .local v0, g:Lcom/philzhu/www/framework/Graphics;
    sget-object v7, Lcom/philzhu/www/ddz/Assets;->backgroundStart:Lcom/philzhu/www/framework/Pixmap;

    invoke-interface {v0, v7, v8, v8}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;II)V

    .line 111
    sget-object v7, Lcom/philzhu/www/ddz/Assets;->dizhu:Lcom/philzhu/www/framework/Pixmap;

    invoke-interface {v0, v7, v12, v12}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;II)V

    .line 113
    iget v7, p0, Lcom/philzhu/www/ddz/MainMenuScreen;->currentPressedButton:I

    const/4 v8, 0x1

    if-ne v7, v8, :cond_0

    .line 115
    sget-object v7, Lcom/philzhu/www/ddz/Assets;->buttonPressed:Lcom/philzhu/www/framework/Pixmap;

    const/16 v8, 0x5f

    invoke-interface {v0, v7, v9, v8}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;II)V

    .line 122
    :goto_0
    iget v7, p0, Lcom/philzhu/www/ddz/MainMenuScreen;->currentPressedButton:I

    const/4 v8, 0x2

    if-ne v7, v8, :cond_1

    .line 124
    sget-object v7, Lcom/philzhu/www/ddz/Assets;->buttonPressed:Lcom/philzhu/www/framework/Pixmap;

    const/16 v8, 0xaf

    invoke-interface {v0, v7, v9, v8}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;II)V

    .line 131
    :goto_1
    iget v7, p0, Lcom/philzhu/www/ddz/MainMenuScreen;->currentPressedButton:I

    const/4 v8, 0x4

    if-ne v7, v8, :cond_2

    .line 133
    sget-object v7, Lcom/philzhu/www/ddz/Assets;->buttonPressed:Lcom/philzhu/www/framework/Pixmap;

    const/16 v8, 0xff

    invoke-interface {v0, v7, v9, v8}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;II)V

    .line 140
    :goto_2
    const/16 v7, 0x2e8

    sget-object v8, Lcom/philzhu/www/ddz/Assets;->soundOn:Lcom/philzhu/www/framework/Pixmap;

    invoke-interface {v8}, Lcom/philzhu/www/framework/Pixmap;->getRawWidth()I

    move-result v8

    sub-int/2addr v7, v8

    sub-int v5, v7, v11

    .line 141
    .local v5, soundOnX:I
    const/16 v6, 0x14e

    .line 143
    .local v6, soundOnY:I
    const/16 v7, 0x2e8

    sget-object v8, Lcom/philzhu/www/ddz/Assets;->soundOff:Lcom/philzhu/www/framework/Pixmap;

    invoke-interface {v8}, Lcom/philzhu/www/framework/Pixmap;->getRawWidth()I

    move-result v8

    sub-int/2addr v7, v8

    sub-int v3, v7, v11

    .line 144
    .local v3, soundOffX:I
    const/16 v4, 0x14e

    .line 145
    .local v4, soundOffY:I
    invoke-static {}, Lcom/philzhu/www/ddz/Settings;->getSoundEnabled()Z

    move-result v7

    if-eqz v7, :cond_3

    .line 147
    sget-object v7, Lcom/philzhu/www/ddz/Assets;->soundOn:Lcom/philzhu/www/framework/Pixmap;

    invoke-interface {v0, v7, v5, v6}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;II)V

    .line 154
    :goto_3
    const/16 v7, 0x320

    sget-object v8, Lcom/philzhu/www/ddz/Assets;->moreGames:Lcom/philzhu/www/framework/Pixmap;

    invoke-interface {v8}, Lcom/philzhu/www/framework/Pixmap;->getRawWidth()I

    move-result v8

    sub-int v1, v7, v8

    .line 155
    .local v1, moreGamesX:I
    const/4 v2, 0x0

    .line 156
    .local v2, moreGamesY:I
    iget v7, p0, Lcom/philzhu/www/ddz/MainMenuScreen;->currentPressedButton:I

    const/4 v8, 0x5

    if-ne v7, v8, :cond_4

    .line 157
    sget-object v7, Lcom/philzhu/www/ddz/Assets;->moreGamesPressed:Lcom/philzhu/www/framework/Pixmap;

    invoke-interface {v0, v7, v1, v2}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;II)V

    .line 162
    :goto_4
    sget-object v7, Lcom/philzhu/www/ddz/Assets;->buttonSStart:Lcom/philzhu/www/framework/Pixmap;

    const/16 v8, 0x73

    invoke-interface {v0, v7, v10, v8}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;II)V

    .line 163
    sget-object v7, Lcom/philzhu/www/ddz/Assets;->buttonSHelp:Lcom/philzhu/www/framework/Pixmap;

    const/16 v8, 0xc3

    invoke-interface {v0, v7, v10, v8}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;II)V

    .line 164
    sget-object v7, Lcom/philzhu/www/ddz/Assets;->buttonSHightscore:Lcom/philzhu/www/framework/Pixmap;

    const/16 v8, 0x113

    invoke-interface {v0, v7, v10, v8}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;II)V

    .line 165
    return-void

    .line 119
    .end local v1           #moreGamesX:I
    .end local v2           #moreGamesY:I
    .end local v3           #soundOffX:I
    .end local v4           #soundOffY:I
    .end local v5           #soundOnX:I
    .end local v6           #soundOnY:I
    :cond_0
    sget-object v7, Lcom/philzhu/www/ddz/Assets;->button:Lcom/philzhu/www/framework/Pixmap;

    const/16 v8, 0x5f

    invoke-interface {v0, v7, v9, v8}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;II)V

    goto :goto_0

    .line 128
    :cond_1
    sget-object v7, Lcom/philzhu/www/ddz/Assets;->button:Lcom/philzhu/www/framework/Pixmap;

    const/16 v8, 0xaf

    invoke-interface {v0, v7, v9, v8}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;II)V

    goto :goto_1

    .line 137
    :cond_2
    sget-object v7, Lcom/philzhu/www/ddz/Assets;->button:Lcom/philzhu/www/framework/Pixmap;

    const/16 v8, 0xff

    invoke-interface {v0, v7, v9, v8}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;II)V

    goto :goto_2

    .line 151
    .restart local v3       #soundOffX:I
    .restart local v4       #soundOffY:I
    .restart local v5       #soundOnX:I
    .restart local v6       #soundOnY:I
    :cond_3
    sget-object v7, Lcom/philzhu/www/ddz/Assets;->soundOff:Lcom/philzhu/www/framework/Pixmap;

    invoke-interface {v0, v7, v3, v4}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;II)V

    goto :goto_3

    .line 159
    .restart local v1       #moreGamesX:I
    .restart local v2       #moreGamesY:I
    :cond_4
    sget-object v7, Lcom/philzhu/www/ddz/Assets;->moreGames:Lcom/philzhu/www/framework/Pixmap;

    invoke-interface {v0, v7, v1, v2}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;II)V

    goto :goto_4
.end method

.method public resume()V
    .locals 0

    .prologue
    .line 175
    return-void
.end method

.method public update(F)V
    .locals 25
    .parameter "deltaTime"

    .prologue
    .line 32
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/philzhu/www/ddz/MainMenuScreen;->game:Lcom/philzhu/www/framework/Game;

    move-object v2, v0

    invoke-interface {v2}, Lcom/philzhu/www/framework/Game;->getInput()Lcom/philzhu/www/framework/Input;

    move-result-object v2

    invoke-interface {v2}, Lcom/philzhu/www/framework/Input;->getTouchEvents()Ljava/util/List;

    move-result-object v24

    .line 33
    .local v24, touchEvents:Ljava/util/List;,"Ljava/util/List<Lcom/philzhu/www/framework/Input$TouchEvent;>;"
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/philzhu/www/ddz/MainMenuScreen;->game:Lcom/philzhu/www/framework/Game;

    move-object v2, v0

    invoke-interface {v2}, Lcom/philzhu/www/framework/Game;->getInput()Lcom/philzhu/www/framework/Input;

    move-result-object v2

    invoke-interface {v2}, Lcom/philzhu/www/framework/Input;->getKeyEvents()Ljava/util/List;

    .line 35
    invoke-interface/range {v24 .. v24}, Ljava/util/List;->size()I

    move-result v19

    .line 36
    .local v19, len:I
    const/16 v17, 0x0

    .local v17, i:I
    :goto_0
    move/from16 v0, v17

    move/from16 v1, v19

    if-lt v0, v1, :cond_0

    .line 96
    return-void

    .line 37
    :cond_0
    move-object/from16 v0, v24

    move/from16 v1, v17

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcom/philzhu/www/framework/Input$TouchEvent;

    .line 39
    .local v3, event:Lcom/philzhu/www/framework/Input$TouchEvent;
    sget-object v2, Lcom/philzhu/www/ddz/Assets;->moreGames:Lcom/philzhu/www/framework/Pixmap;

    invoke-interface {v2}, Lcom/philzhu/www/framework/Pixmap;->getRawWidth()I

    move-result v21

    .line 40
    .local v21, moreGamesWidth:I
    sget-object v2, Lcom/philzhu/www/ddz/Assets;->moreGames:Lcom/philzhu/www/framework/Pixmap;

    invoke-interface {v2}, Lcom/philzhu/www/framework/Pixmap;->getRawHeight()I

    move-result v20

    .line 41
    .local v20, moreGamesHeight:I
    const/16 v2, 0x320

    sub-int v22, v2, v21

    .line 42
    .local v22, moreGamesX:I
    const/16 v23, 0x0

    .line 45
    .local v23, moreGamesY:I
    sget-object v2, Lcom/philzhu/www/ddz/Assets;->soundOn:Lcom/philzhu/www/framework/Pixmap;

    invoke-interface {v2}, Lcom/philzhu/www/framework/Pixmap;->getRawWidth()I

    move-result v9

    .line 46
    .local v9, soundOnWidth:I
    sget-object v2, Lcom/philzhu/www/ddz/Assets;->soundOn:Lcom/philzhu/www/framework/Pixmap;

    invoke-interface {v2}, Lcom/philzhu/www/framework/Pixmap;->getRawHeight()I

    move-result v10

    .line 47
    .local v10, soundOnHeight:I
    const/16 v2, 0x2e8

    sub-int/2addr v2, v9

    const/16 v4, 0xf

    sub-int v7, v2, v4

    .line 48
    .local v7, soundOnX:I
    const/16 v8, 0x14e

    .line 50
    .local v8, soundOnY:I
    iget v2, v3, Lcom/philzhu/www/framework/Input$TouchEvent;->type:I

    const/4 v4, 0x1

    if-ne v2, v4, :cond_5

    .line 51
    const/4 v2, 0x0

    move v0, v2

    move-object/from16 v1, p0

    iput v0, v1, Lcom/philzhu/www/ddz/MainMenuScreen;->currentPressedButton:I

    .line 52
    const/16 v4, 0x1ea

    const/16 v5, 0x5f

    const/16 v6, 0xfe

    const/16 v7, 0x40

    move-object/from16 v2, p0

    invoke-direct/range {v2 .. v7}, Lcom/philzhu/www/ddz/MainMenuScreen;->inBounds(Lcom/philzhu/www/framework/Input$TouchEvent;IIII)Z

    .end local v7           #soundOnX:I
    move-result v2

    if-eqz v2, :cond_1

    .line 54
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/philzhu/www/ddz/MainMenuScreen;->game:Lcom/philzhu/www/framework/Game;

    move-object v2, v0

    new-instance v4, Lcom/philzhu/www/ddz/ChooseLevelScreen;

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/philzhu/www/ddz/MainMenuScreen;->game:Lcom/philzhu/www/framework/Game;

    move-object v5, v0

    invoke-direct {v4, v5}, Lcom/philzhu/www/ddz/ChooseLevelScreen;-><init>(Lcom/philzhu/www/framework/Game;)V

    invoke-interface {v2, v4}, Lcom/philzhu/www/framework/Game;->setScreen(Lcom/philzhu/www/framework/Screen;)V

    .line 56
    :cond_1
    const/16 v4, 0x1ea

    const/16 v5, 0xaf

    const/16 v6, 0xfe

    const/16 v7, 0x40

    move-object/from16 v2, p0

    invoke-direct/range {v2 .. v7}, Lcom/philzhu/www/ddz/MainMenuScreen;->inBounds(Lcom/philzhu/www/framework/Input$TouchEvent;IIII)Z

    move-result v2

    if-eqz v2, :cond_2

    .line 58
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/philzhu/www/ddz/MainMenuScreen;->game:Lcom/philzhu/www/framework/Game;

    move-object v2, v0

    new-instance v4, Lcom/philzhu/www/ddz/HelpScreen;

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/philzhu/www/ddz/MainMenuScreen;->game:Lcom/philzhu/www/framework/Game;

    move-object v5, v0

    invoke-direct {v4, v5}, Lcom/philzhu/www/ddz/HelpScreen;-><init>(Lcom/philzhu/www/framework/Game;)V

    invoke-interface {v2, v4}, Lcom/philzhu/www/framework/Game;->setScreen(Lcom/philzhu/www/framework/Screen;)V

    .line 60
    :cond_2
    const/16 v4, 0x1ea

    const/16 v5, 0xff

    const/16 v6, 0xfe

    const/16 v7, 0x40

    move-object/from16 v2, p0

    invoke-direct/range {v2 .. v7}, Lcom/philzhu/www/ddz/MainMenuScreen;->inBounds(Lcom/philzhu/www/framework/Input$TouchEvent;IIII)Z

    move-result v2

    if-eqz v2, :cond_3

    .line 62
    new-instance v18, Lcom/openfeint/api/resource/Leaderboard;

    const-string v2, "981806"

    move-object/from16 v0, v18

    move-object v1, v2

    invoke-direct {v0, v1}, Lcom/openfeint/api/resource/Leaderboard;-><init>(Ljava/lang/String;)V

    .line 63
    .local v18, leaderboard:Lcom/openfeint/api/resource/Leaderboard;
    invoke-virtual/range {v18 .. v18}, Lcom/openfeint/api/resource/Leaderboard;->resourceID()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Lcom/openfeint/api/ui/Dashboard;->openLeaderboard(Ljava/lang/String;)V

    .end local v18           #leaderboard:Lcom/openfeint/api/resource/Leaderboard;
    :cond_3
    move-object/from16 v2, p0

    move/from16 v4, v22

    move/from16 v5, v23

    move/from16 v6, v21

    move/from16 v7, v20

    .line 65
    invoke-direct/range {v2 .. v7}, Lcom/philzhu/www/ddz/MainMenuScreen;->inBounds(Lcom/philzhu/www/framework/Input$TouchEvent;IIII)Z

    move-result v2

    if-eqz v2, :cond_4

    .line 67
    new-instance v4, Lcom/flyfish/moregames/FlyfishMoreGames;

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/philzhu/www/ddz/MainMenuScreen;->game:Lcom/philzhu/www/framework/Game;

    move-object v5, v0

    check-cast v5, Landroid/content/Context;

    sget-object v6, Lcom/flyfish/moregames/untils/MoreGameConstant;->game_icon:[I

    sget-object v7, Lcom/flyfish/moregames/untils/MoreGameConstant;->game_name:[Ljava/lang/String;

    sget-object v8, Lcom/flyfish/moregames/untils/MoreGameConstant;->game_info:[Ljava/lang/String;

    .end local v8           #soundOnY:I
    sget-object v9, Lcom/flyfish/moregames/untils/MoreGameConstant;->game_package:[Ljava/lang/String;

    .end local v9           #soundOnWidth:I
    invoke-direct/range {v4 .. v9}, Lcom/flyfish/moregames/FlyfishMoreGames;-><init>(Landroid/content/Context;[I[Ljava/lang/String;[Ljava/lang/String;[Ljava/lang/String;)V

    .line 68
    .local v4, fmg:Lcom/flyfish/moregames/FlyfishMoreGames;
    invoke-virtual {v4}, Lcom/flyfish/moregames/FlyfishMoreGames;->showMoreGames()V

    .line 36
    .end local v4           #fmg:Lcom/flyfish/moregames/FlyfishMoreGames;
    :cond_4
    :goto_1
    add-int/lit8 v17, v17, 0x1

    goto/16 :goto_0

    .line 71
    .restart local v7       #soundOnX:I
    .restart local v8       #soundOnY:I
    .restart local v9       #soundOnWidth:I
    :cond_5
    iget v2, v3, Lcom/philzhu/www/framework/Input$TouchEvent;->type:I

    if-eqz v2, :cond_6

    iget v2, v3, Lcom/philzhu/www/framework/Input$TouchEvent;->type:I

    const/4 v4, 0x2

    if-ne v2, v4, :cond_4

    .line 73
    :cond_6
    iget v2, v3, Lcom/philzhu/www/framework/Input$TouchEvent;->type:I

    if-nez v2, :cond_7

    move-object/from16 v5, p0

    move-object v6, v3

    .line 75
    invoke-direct/range {v5 .. v10}, Lcom/philzhu/www/ddz/MainMenuScreen;->inBounds(Lcom/philzhu/www/framework/Input$TouchEvent;IIII)Z

    move-result v2

    if-eqz v2, :cond_7

    .line 77
    invoke-static {}, Lcom/philzhu/www/ddz/Settings;->toggleSound()V

    .line 80
    :cond_7
    const/4 v2, 0x0

    move v0, v2

    move-object/from16 v1, p0

    iput v0, v1, Lcom/philzhu/www/ddz/MainMenuScreen;->currentPressedButton:I

    .line 81
    const/16 v13, 0x1ea

    const/16 v14, 0x5f

    const/16 v15, 0xfe

    const/16 v16, 0x40

    move-object/from16 v11, p0

    move-object v12, v3

    invoke-direct/range {v11 .. v16}, Lcom/philzhu/www/ddz/MainMenuScreen;->inBounds(Lcom/philzhu/www/framework/Input$TouchEvent;IIII)Z

    move-result v2

    if-eqz v2, :cond_8

    .line 82
    const/4 v2, 0x1

    move v0, v2

    move-object/from16 v1, p0

    iput v0, v1, Lcom/philzhu/www/ddz/MainMenuScreen;->currentPressedButton:I

    .line 84
    :cond_8
    const/16 v13, 0x1ea

    const/16 v14, 0xaf

    const/16 v15, 0xfe

    const/16 v16, 0x40

    move-object/from16 v11, p0

    move-object v12, v3

    invoke-direct/range {v11 .. v16}, Lcom/philzhu/www/ddz/MainMenuScreen;->inBounds(Lcom/philzhu/www/framework/Input$TouchEvent;IIII)Z

    move-result v2

    if-eqz v2, :cond_9

    .line 85
    const/4 v2, 0x2

    move v0, v2

    move-object/from16 v1, p0

    iput v0, v1, Lcom/philzhu/www/ddz/MainMenuScreen;->currentPressedButton:I

    .line 87
    :cond_9
    const/16 v13, 0x1ea

    const/16 v14, 0xff

    const/16 v15, 0xfe

    const/16 v16, 0x40

    move-object/from16 v11, p0

    move-object v12, v3

    invoke-direct/range {v11 .. v16}, Lcom/philzhu/www/ddz/MainMenuScreen;->inBounds(Lcom/philzhu/www/framework/Input$TouchEvent;IIII)Z

    move-result v2

    if-eqz v2, :cond_a

    .line 88
    const/4 v2, 0x4

    move v0, v2

    move-object/from16 v1, p0

    iput v0, v1, Lcom/philzhu/www/ddz/MainMenuScreen;->currentPressedButton:I

    :cond_a
    move-object/from16 v11, p0

    move-object v12, v3

    move/from16 v13, v22

    move/from16 v14, v23

    move/from16 v15, v21

    move/from16 v16, v20

    .line 90
    invoke-direct/range {v11 .. v16}, Lcom/philzhu/www/ddz/MainMenuScreen;->inBounds(Lcom/philzhu/www/framework/Input$TouchEvent;IIII)Z

    move-result v2

    if-eqz v2, :cond_4

    .line 92
    const/4 v2, 0x5

    move v0, v2

    move-object/from16 v1, p0

    iput v0, v1, Lcom/philzhu/www/ddz/MainMenuScreen;->currentPressedButton:I

    goto :goto_1
.end method
